//抓取get数据
const http = require('http');
const fs = require('fs');
const url = require('url');


let server = http.createServer((req,res)=>{
  let {pathname,query} = url.parse(req.url,true);
  console.log(query.username);
  console.log(query.password);
  res.end();
});

server.listen(8080);
